import request from '@/utils/request'

// 查询运动会列表
export function listSportsmeeting(query) {
  return request({
    url: '/sports/sportsmeeting/list',
    method: 'get',
    params: query
  })
}

// 查询运动会详细
export function getSportsmeeting(sportsMeetingId) {
  return request({
    url: '/sports/sportsmeeting/' + sportsMeetingId,
    method: 'get'
  })
}

// 新增运动会
export function addSportsmeeting(data) {
  return request({
    url: '/sports/sportsmeeting',
    method: 'post',
    data: data
  })
}

// 修改运动会
export function updateSportsmeeting(data) {
  return request({
    url: '/sports/sportsmeeting',
    method: 'put',
    data: data
  })
}

// 删除运动会
export function delSportsmeeting(sportsMeetingId) {
  return request({
    url: '/sports/sportsmeeting/' + sportsMeetingId,
    method: 'delete'
  })
}
